package com.example.blood_sugar.fragments;

import android.support.v4.app.Fragment;

import com.example.blood_sugar.interfaces.HandleBackInterface;
import com.example.blood_sugar.utils.HandleBackUtil;

/**
 * “优雅的”处理fragment的返回键
 */
public class BaseFragment extends Fragment implements HandleBackInterface {

    @Override
    public boolean onBackPressed() {
        return HandleBackUtil.handleBackPress(this);
    }
}
